From: Keir Fraser Date: Thu, 24 Jun 2010 20:49:25 +0000 (+0100) Subject: x86: Fix rdmsr_safe after c/s 21600. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11884 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=f8decb68bf79927cba503f8335c685b49424165e;p=xen.git x86: Fix rdmsr_safe after c/s 21600. From: Kathy Hadley Signed-off-by: Keir Fraser --- diff --git a/xen/include/asm-x86/msr.h b/xen/include/asm-x86/msr.h index 820a2528e6..d55c81509b 100644 --- a/xen/include/asm-x86/msr.h +++ b/xen/include/asm-x86/msr.h @@ -37,7 +37,7 @@ static inline void wrmsrl(unsigned int msr, __u64 val) /* rdmsr with exception handling */ #define rdmsr_safe(msr,val) ({\ int _rc; \ - uint32_t val1, val2; \ + uint32_t lo, hi; \ __asm__ __volatile__( \ "1: rdmsr\n2:\n" \ ".section .fixup,\"ax\"\n" \ @@ -47,9 +47,9 @@ static inline void wrmsrl(unsigned int msr, __u64 val) " "__FIXUP_ALIGN"\n" \ " "__FIXUP_WORD" 1b,3b\n" \ ".previous\n" \ - : "=a" (val1), "=d" (val2), "=&r" (_rc) \ + : "=a" (lo), "=d" (hi), "=&r" (_rc) \ : "c" (msr), "2" (0), "i" (-EFAULT)); \ - val = val2 | ((uint64_t)val1 << 32); \ + val = lo | ((uint64_t)hi << 32); \ _rc; }) /* wrmsr with exception handling */